package com.service.admin.financial.controller;

import com.service.admin.financial.controller.dto.rep.FinancialReportRep;
import com.service.admin.financial.service.FinancialReportService;
import com.service.core.rest.BaseController;
import com.service.core.rest.response.OneResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 财务信息 控制层 API
 *
 * @author 404notfound
 * @since 2021年05月16日10:20:31
 */

@RestController
@RequestMapping("/financial")
@Api(value = "财务信息 控制层 API", tags = "财务信息 控制层 API", description = "财务信息 控制层 API")
public class FinancialController extends BaseController {

    @Autowired
    private FinancialReportService financialReportService;


    @ApiOperation("查询财务信息")
    @RequestMapping(value = "/report/info", method = RequestMethod.GET)
    public OneResponse<FinancialReportRep> info() {
        FinancialReportRep info = financialReportService.info();
        return successQueryOneResponse(info);
    }


}


